package com.sap.controller;

import com.sap.domain.User;
import com.sap.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class UserRoleController {

    @Autowired
    private SysUserRoleService sysUserRoleService;

    @GetMapping("/role")
    public User role(){
        return sysUserRoleService.getUserInfo();
    }
}
